package com.vegetable.modules.service.finance;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.utils.PageUtils;
import com.vegetable.common.utils.R;
import com.vegetable.modules.entity.finance.PaymentPurchase;
import com.vegetable.modules.entity.finance.po.AgentDeliveryStatisticsPO;
import com.vegetable.modules.entity.finance.po.PaymentPurchaseAddPO;
import com.vegetable.modules.entity.finance.po.PurchaseDeliveryStatisticsPO;

import java.util.Map;

/**
 * <p>
 * 采购/代办付款 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-15
 */
public interface IPaymentPurchaseService extends IService<PaymentPurchase> {

    /**
     * 采购/代办付款列表查询
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据id查询详情采购付款
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/4/28 下午4:53
     */
    R detailPurchase(Long id);

    /**
     * 新增采购付款
     * @param payment null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R savePayment(PaymentPurchaseAddPO payment) throws Exception;

    /**
     * 新增代办付款
     * @param payment null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R savePaymentAgent(PaymentPurchase payment) throws Exception;
    
    /**
     * 删除采购/代办付款
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R deletePayment(Long id) throws Exception;

    R agentDeliveryStatistics(AgentDeliveryStatisticsPO po);

    R purchaseDeliveryStatistics(PurchaseDeliveryStatisticsPO po);
}
